<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module" >
        // 需要使用live-server打开,不支持file://协议也即是不能直接打开这个.html文件
        // 不能省略 ./
        // import {x} from './js/mymodule.js'
        // import {x,y,z} from './js/mymodule.js'
        //import {m as n,y,z,fn1 as ggg} from './js/mymodule.js'
        //import {stu} from './js/mymodule.js'
        // import {pet} from './js/mymodule.js'
        // 获取export default
        //import pet from './js/mymodule.js'
        // 组合到一起
        import pet,{m as n,y,z,fn1 as ggg,stu} from './js/mymodule.js'
        let x=10
        let m=20
        console.log(n)
        console.log(y)
        console.log(z)
        ggg()
        stu.hello()

        pet.play('小球')
        
    </script>
</body>
</html>